import { getTextByCode } from '../utils/getTextByCode'
import { SETTLE_STATUS } from './settleStatus'
import { formatMoney } from '@/utils/util'

export const BATCH_ORDERS_LIST_COLUMNS = [
  {
    title: '姓名',
    dataIndex: 'name',
    fixed: 'left'
  },
  {
    title: '手机号',
    dataIndex: 'phone'
  },
  {
    title: '身份证号',
    dataIndex: 'idcardNum'
  },
  {
    title: '开户行',
    dataIndex: 'bankName'
  },
  {
    title: '银行卡号',
    dataIndex: 'bankCardNum'
  },
  {
    title: '众包费',
    dataIndex: 'afterFee',
    customRender: (afterFee) => formatMoney(afterFee)
  },
  {
    title: '备注',
    dataIndex: 'remark'
  },
  {
    title: '状态',
    dataIndex: 'settleStatus',
    customRender: status => getTextByCode(status, SETTLE_STATUS)
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: '150px',
    scopedSlots: { customRender: 'action' },
    fixed: 'right'
  }
]
